package bean;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanFactoryPostProcessor;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;

/**
 * BeanFactory的后处理器，能够为容器进行扩展
 * ApplicationContext能给自动识别和注册后处理器
 * BeanFactory需要手动注册
 */
public class MyBeanFactoryPostProcessor implements BeanFactoryPostProcessor{
    @Override
    public void postProcessBeanFactory(ConfigurableListableBeanFactory configurableListableBeanFactory) throws BeansException {
        System.out.println("BeanFactory后处理器为"+configurableListableBeanFactory+"进行增强...");
    }
}
